import { network } from '@/utils';
import { TableListParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function queryCampusCommunityInfo(params: TableListParams) {
  return network.get(basic.garden, {
    params,
  });
}

export async function performSave(params: TableListParams) {
  return network.post(basic.garden, { data: params });
}

export async function performUpdate(params: TableListParams) {
  return network.put(basic.garden, { data: params });
}

export async function queryCabinet(params: any) {
  return network.get(basic.cab_cabCountInfo, { params });
}
